<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<%@ page import="org.tigr.htc.server.ServiceStatus" %>
<%@ page language="java" contentType="text/html; charset=iso-8859-1" %>

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>HTC and Grid Services Portal</title>
  
  <link href="htcserver.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h1 align="center">HTC Service Portal</h1>
<%@ include file="header.jsp"%>
<%
	String htcServiceImg = ServiceStatus.isHTCServiceAlive() ? 
								"images/okbutton.png" : "images/badbutton.png";
	String psearchServiceImg = ServiceStatus.isPsearchAlive() ? 
								"images/okbutton.png" : "images/badbutton.png";
	String endToEndImg = ServiceStatus.isEndToEndOK() ? 
								"images/okbutton.png" : "images/badbutton.png";
								
%>

<h2 align="center">Service Status</h2 align="center">
<table align="center" cellpadding="5" bgcolor="#9999ee" style="
    border-collapse: collapse;
    border: 1px solid #aaa;">
<tr>
<td align="right">HTC Service</td>
<td><a href="http://htc.tigr.org/antware/cgi-bin/critical.cgi"><img border="0" src="<%= htcServiceImg %>"/></a></td>
</tr>
<tr>
<td align="right">HTC end-to-end test</td>
<td><a href="http://htc.tigr.org/antware/cgi-bin/critical.cgi"><img border="0" src="<%= endToEndImg%>"/></a></td>
</tr>
<tr>
<td align="right">Psearch</td>
<td><a href="http://htc.tigr.org/antware/cgi-bin/critical.cgi"><img border="0" src="<%= psearchServiceImg%>"/></a></td>
</tr>
</table>
<br>
<br>
<br>
<h2 align="center">Status Pages</h2>
<table class="dataview" align="center" cellspacing="5" cellpadding="5">
<tr>
<th align="right">Name</th>
<th align="left">Description</th>
</tr>
<tr>
<td align="right"><a href="user_summary.jsp">HTC Summary</a></td>
<td>Displays the HTC Service summary page
</td>
</tr>
<tr>
<td align="right"><a href="request_search.jsp">HTC Request Search</a></td>
<td>Displays the HTC Service request search page
</td>
</tr>
<tr>
<td align="right"><a href="request_status.jsp">HTC Request Search and Status</a></td>
<td>Displays the HTC Service request status and search page
</td>
</tr>
<tr>
<td align="right"><a href="request_display.jsp">HTC Request details</a></td>
<td>Displays the detailed information for a specific HTC request</td>
</tr>
<tr>
<td align="right"><a href="http://htc.tigr.org/antware/cgi-bin/sgestatus.cgi">Grid Status</a></td>
<td>Displays the grid user summary, machine pool information, and job details</td>
</tr>
<tr>
<td align="right"><a href="http://htc.tigr.org/antware/psearch/pstatus/pstatus.cgi">Psearch Status</a></td>
<td>Displays the psearch status and job details</td>
</tr>
</table>
<br>
<br>
<%@include file="footer.jsp"%>
</body>
</html>
